package com.example.demo.controller;

import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserContoller {

    private static UserService userService;

    @Autowired
    public void setUserService(UserService userService){
        this.userService = userService;
    }
    public static void main(String[] args) {
        System.out.println("hi");
        userService.sayHi();
    }
}
